<template>
    <section>
        <div class='info'>

            <el-form :model="currObj" label-width="80px" ref="currObj">
                <el-form-item label="头像" prop="name">
                    <div style="height:10px" ></div>
                    <el-upload class="avatar-uploader itemImg" :action="getAction()" :show-file-list="false" :on-success="picImgUp">
                        <img v-if="currObj.picUrl" :src="currObj.picUrl" class="itemImg">
                        <i v-else class="el-icon-picture itemImg"></i>
                    </el-upload>
                </el-form-item>
                <el-form-item label="姓名" prop="name">
                    <el-input v-model="currObj.name" auto-complete="off"></el-input>
                </el-form-item>
                <el-form-item label="电话" prop="tell">
                    <el-input v-model="currObj.tell" auto-complete="off"></el-input>
                </el-form-item>
                <el-form-item label="密码" prop="tell">
                    <el-input v-model="currObj.pwd" type="password" auto-complete="off"></el-input>
                </el-form-item>

                <el-form-item label="邮件" prop="email">
                    <el-input v-model="currObj.email" auto-complete="off"></el-input>
                </el-form-item>


                <el-form-item label="地址">
                    <el-cascader :options="addressOptions" v-model="currObj.array" :change='addressChange'></el-cascader>
                </el-form-item>
                <el-form-item label="详细地址">
                    <el-input type="textarea" v-model="currObj.address.memo"></el-input>
                </el-form-item>
                <el-form-item label="备注">
                    <el-input type="textarea" v-model="currObj.memo"></el-input>
                </el-form-item>
                <el-form-item label="">
                    <div>
                        <el-button type="primary" @click.native="saveMember">提交</el-button>
                    </div>

                </el-form-item>


            </el-form>



        </div>
    </section>
</template>
<script src="./me.js"></script>

<style lang="scss" scoped>
    .itemImg,
    .itemImg img {
        max-width: 100px;
        max-height: 100px;
        width: 98px;
        height: 98px;
        padding: 0;
        margin: 0;
    
    
    }
</style>